import Vue from 'vue'
export default {
  successMessage(message) {
    const instance = new Vue()
    instance.$message({
      message: message,
      type: 'success',
      showClose: true,
      center: true
    })
  },

  failMessage(message) {
    const instance = new Vue()
    instance.$message({
      message: message,
      type: 'error',
      showClose: true,
      center: true
    })
  }
}
